package com.yqn.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yqn.mapper.TaskMapper;
import com.yqn.pojo.Task;
import com.yqn.pojo.TaskData;
import com.yqn.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {
    @Autowired
    private TaskMapper taskMapper;
    @Override
    public List<Integer> selectPublishedCnt(Long id) {
        return taskMapper.selectPublishedCnt(id);
    }

    @Override
    public List<Integer> selectCompleteCnt(Long id) {
        return taskMapper.selectCompleteCnt(id);
    }
}
